import Vue from "vue";
import Router from "vue-router";
//import HelloWorld from '@/components/HelloWorld'
import login from "@/components/login.vue";
import index from "@/components/index.vue";

Vue.use(Router);

export default new Router({
  mode: "history",
  routes: [
    {
      path: "/login",
      name: "login",
      component: login
    },
    {
      path: "/",
      name: "index",
      component: index
    }
  ]
});
